package 作业.Var1029.Test1;

public class Test {
    public static void main(String[] args) {
        Flights flights=new Flights();
        flights.setFlight(new Bird());
        flights.niao();
        flights.setFlight(new Bat());
        flights.print();
        flights.setFlight(new Aircraft("飞机和","风筝"));
        flights.feiji();

    }
}
